package com.project.running.bean;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName GRADERECORD
 */
@Data
public class Graderecord implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private Long minpoint;

    /**
     * 
     */
    private Long maxpoint;

    /**
     * 
     */
    private String gradename;

    /**
     * 
     */
    private String iconpath;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Graderecord other = (Graderecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMinpoint() == null ? other.getMinpoint() == null : this.getMinpoint().equals(other.getMinpoint()))
            && (this.getMaxpoint() == null ? other.getMaxpoint() == null : this.getMaxpoint().equals(other.getMaxpoint()))
            && (this.getGradename() == null ? other.getGradename() == null : this.getGradename().equals(other.getGradename()))
            && (this.getIconpath() == null ? other.getIconpath() == null : this.getIconpath().equals(other.getIconpath()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMinpoint() == null) ? 0 : getMinpoint().hashCode());
        result = prime * result + ((getMaxpoint() == null) ? 0 : getMaxpoint().hashCode());
        result = prime * result + ((getGradename() == null) ? 0 : getGradename().hashCode());
        result = prime * result + ((getIconpath() == null) ? 0 : getIconpath().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", minpoint=").append(minpoint);
        sb.append(", maxpoint=").append(maxpoint);
        sb.append(", gradename=").append(gradename);
        sb.append(", iconpath=").append(iconpath);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}